<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <link rel="stylesheet" href="../../static/layuiadmin/layui/css/layui.css"
          tppabs="https://www.layui.site/layui/dist/css/layui.css" media="all">
    <script src="../../static/layuiadmin/layui/layui.js" charset="utf-8"></script>
    <script src="https://code.jquery.com/jquery-3.6.0.js"></script>
    <link rel="stylesheet" href="addDept.css">
</head>
<body>
<form class="layui-form">
    <div class="layui-form-item" id="add_form">
        <div class="layui-inline" id="dept_name">
            <label class="layui-form-label">部门名称<i style="color: red">*</i></label>
            <div class="layui-input-inline">
                <input type="text" name="name" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
        </div>
        <br><br>

        <div class="layui-inline">
            <label class="layui-form-label">上级部门<i style="color: red">*</i></label>
            <div class="layui-input-inline">
                <input type="text" name="deptId" id="dept_id" hidden>
                <input type="text" name="parentId" id="parent_id" hidden>
                <input type="text" name="parentName" id="parentName" lay-verify="required" placeholder="一级部门"
                       autocomplete="off" class="layui-input" onclick="load_deptTree()">
            </div>
        </div>
    </div>
    <br>

    <input type="text" style="display: none" id="create_by" name="createBy"/><br><br>

    <div class="layui-input-block">
        <button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
    <br>

</form>

<script src="../../static/layuiadmin/layui/layui.js" charset="utf-8"></script>

<script src="addDept.js"></script>

</body>
</html>